package com.qingke.oms.command.shop;

import com.qingke.oms.app.OrderManagementSystemAppliction;
import com.qingke.oms.command.ShopCommand;
import com.qingke.oms.pojo.Shop;
import com.qingke.oms.pojo.User;
import com.qingke.oms.util.OMSConsole;

public class LeaveShopCommand extends ShopCommand {

	public LeaveShopCommand(User user, Shop shop) {
		super(user, shop);
	}

	@Override
	public void execute() {
		OMSConsole.println("you leave the shop["+shop.getName()+"]");
		OrderManagementSystemAppliction.getInstance().setShop(null);
	}

}
